<?php
/**
 * Interface zum Db_Connector
 *
 * @author		Joachim Ruf
 * @copyright	Copyright (c) 2003-2010 Loresoft Software (http://www.loresoft.de)
 * @license		http://yapary.loresoft.de/lizenzbedingungen     New BSD License
 *
 * */


interface Yapary_Db_IConnector
{
    function __construct ($_serverName, $_databaseName, $_userName, $_userPassword);
    function __destruct ();

	/**
	 * @return Yapary_Db_IResult|NULL
	 * */
    public function request ($_strQuery);

    /**
     * @return Yapary_Db_IResult|NULL
     * */
    public function query ($_strQuery);

    /**
     * @return Yapary_Db_ITransaction
     * */
    public function transaction ();

    /**
     * @return Yapary_Db_IDatabase
     * */
    public function database ();

    /**
     * @return Yapary_Exception_Exception
     * */
    public function exception ();

    /**
     * @return string
     * */
    public function getLastQuery();
}


?>